<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/common/common.jsp"%>
<%@ page import="com.chanyachting.emall.util.RequestUtil"%>
<%@ page import="com.chanyachting.emall.util.CodeMap"%>
<%@ page import="com.chanyachting.emall.domain.Jobhistory"%>
<%@ page import="com.chanyachting.emall.service.ApplicationLeterService"%>
<%@ page import="com.chanyachting.emall.serviceImpl.ApplicationLeterServiceImpl"%>

<%@ page import="java.util.*"%>

<%

	RequestUtil ru=new RequestUtil(request);
	
	//获得求职信息id
	Integer appId=Integer.parseInt(ru.getParameter("id","0"));

%>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="css/import.css" type="text/css" rel="stylesheet" />
<title></title>

<script type="text/javascript" src="<%=root %>/js/jquery-1.3.2.min.js" charset="utf-8">//ADCRM</script>
<script type="text/javascript" src="<%=root %>/js/jquery.form.js" charset="utf-8">//ADCRM</script>

<script language="javascript" type="text/javascript">

	$(function(){

		$.ajaxSetup ({
		    cache: false //关闭AJAX相应的缓存
		});

		});


	var id="<%=appId%>";

	//添加工作经历 
	function addJH(theForm){

		options={
				    url:theForm.action,
				    success: function(data){

						//alert(window.opener.document.getElementById("jobhistoryList"));
						
						alert("添加成功！");
		    
					    $(window.opener.document.getElementById("jobhistoryList")).load("applicationLeter_jobhistory_list.jsp",{id:id});
					    }
				  };
					
		$(theForm).ajaxSubmit(options);

	}
	

</script>

</head>

<body>
<!-- 添加工作经历 -->

<table width="700" border="0" align="center" cellpadding="0" cellspacing="0" id="showaddjh" >
    
    <form name="jobhistoryForm" action="<%=root %>/memberBackend/jobhistoryAdd.do" method="post">
    
    <input type="hidden" name="appId" value="<%=appId %>"/>

	<tr>
		<td height="28" align="right">时间：</td>
		<td>
			<input type="text" name="beginDate" value="2009-10-17"/>
			<input type="text" name="endDate" value="2019-10-17"/>
		</td>
	</tr>
	<tr>
		<td height="28" align="right">单位名称：</td>
		<td><input type="text" name="companyName" id="textfield14" /></td>
	</tr>
	<tr>
		<td height="28" align="right">职位：</td>
		<td><input type="text" name="postName" id="textfield19" /></td>
	</tr>
	<tr>
		<td height="28" align="right">月薪：</td>
		<td><input type="text" name="monthlyPay" id="textfield20" /></td>
	</tr>
	<tr>
		<td height="28" align="right">离职主要原因：</td>
		<td><input type="text" name="leaveReason" id="textfield23" /></td>
	</tr>
	<tr>
		<td height="28" align="right">工作描述：</td>
		<td><textarea name="jobSummary" id="textarea4" cols="45" rows="5"></textarea></td>
	</tr>
	<tr>
		<td colspan="2" height="28" align="left">
			<input type="button"  value="确认提交" onclick="addJH(this.form);"/> &nbsp;&nbsp;
			<input type="button"  value="关闭" onclick="window.close();"/> &nbsp;&nbsp;
		</td>
	</tr>
	
	</form>
    
    <tr>
      <td colspan="2" align="left" class="td_dashed"><label></label></td>
    </tr>
  </table>

</body>
</html>
